home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / g / gnu_c / pmlsrc23.zoo / pmlsrc / lt.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-19  |  478 b   |  23 lines

  1. #include    <stdio.h>
  2. #include    <math.h>
  3. #include    <float.h>
  4. #include    "flonum.h"
  5.  
  6.     union double_di _dd;
  7.  
  8. main()    {
  9.     _dd.d = DBL_MAX;
  10.     printf(" %lx %lx\n",_dd.i[0],_dd.i[1] );
  11.     _dd.d = log(-1.0);
  12.     printf(" %lx %lx\n",_dd.i[0],_dd.i[1] );
  13.     printf("%g\n",log( 1.0));
  14.     printf("%g\n",log( 0.0));
  15.     printf("%g\n",log(-1.0));
  16.     printf("%g\n",log( 0.0));
  17.     printf("%g\n",log(-1.0));
  18.     printf("%g\n",5000.);    
  19.     _dd.d = DBL_MAX;
  20.     printf(" %lx %lx\n",_dd.i[0],_dd.i[1] );
  21.     printf("%g\n",DBL_MAX);    
  22. }
  23.